import React,{useState} from 'react'
import { CalendarPicker, List } from 'antd-mobile'
function Index() {
    const [visible1, setVisible1] = useState(true)
    
    const getValue=(value)=>{
      
        localStorage.setItem('date',new Date(value).toLocaleDateString())
    }

   
  return (
    <div>
        <CalendarPicker
          visible={visible1}
          selectionMode='single'
          onClose={() => setVisible1(false)}
          onMaskClick={() => setVisible1(false)}
          onChange={(value)=>getValue(value)}
         
        />
    </div>
  )
}

export default Index
